#ifndef  USER_PMSM_H
#define  USER_PMSM_H


#define  s8   signed char
#define  s16  signed short int
#define	 s32  signed int 
#define	 u8   unsigned char 
#define	 u16  unsigned short int 
#define	 u32  unsigned int 


#define  GET_PHASE_CURRENTS 	GetPhaseCurrentValues


typedef struct
{
	s32 Ia;
	s32 Ib;
	s32 Ic;
}Curr_Components;

extern Curr_Components		  	s_Curr_Phase;
extern void 					MC_ADC1_CALB(void);
extern void						PhaseCurrent_OCP(void);
extern void 					Mot_Parameter_Init(void);
extern void 					MC_FOC_CTRL(void);
extern void 					PMSM_ControlOpen(void);
extern void 					MC_ROT_EST(void);
extern void 					EPWM_UPDATE(void);
extern Curr_Components  		GetPhaseCurrentValues(void);

#endif       

